Skip to contentSkip to conversation

assembly language use in xen

DISCUSSION Furquan Shaikh 2 participants 4 messages Dec 24, 2008

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Furquan Shaikh

Is .text 1 the same as .section???

.text 1 occurs in entry.S

Please tell me what it means?

It specifies a numeric subsection. It¹s still part of the text section, but it will presumably be placed after the normal part of the text section. It¹s being used here to place rarely used code out of line. It also means that straight-line flow of control skips to the next instance of .previous, without needing an extra JMP instruction. Tricky code. :-)

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Hello Keir,
Thanks a lot for the information.
I am having a tough time understanding the interrupt handling part in Xen as AT&T syntax is new for me.
Could you please give me a brief overview of the flow of control when control is transferred to Xen after interrupt?
Your guidance would be a lot of help for me.

Thanking you

Furquan

Quoted 9 lines · Keir Fraser

On 24/12/2008 11:29, "Furquan Shaikh" <[email protected]> wrote:

Is *.text 1 *the same as *.section*???

.text 1 occurs in entry.S

Please tell me what it means?

Quoted 8 lines

It specifies a numeric subsection. It's still part of the text section, but it will presumably be placed after the normal part of the text section. It's being used here to place rarely used code out of line. It also means that straight-line flow of control skips to the next instance of .previous, without needing an extra JMP instruction. Tricky code. :-)

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

I doubt the AT&T syntax is the most significant hurdle. The entry stubs are hidden away in macros in include/asm-x86/x86_32/asm_defns.h, and instantiated at the top of arch/x86/i8259.c. They get poked into the IDT in the first for() loop in init_IRQ().

-- Keir

Quoted 8 lines · Furquan Shaikh

Hello Keir,
Thanks a lot for the information.
I am having a tough time understanding the interrupt handling part in Xen as AT&T syntax is new for me.
Could you please give me a brief overview of the flow of control when control is transferred to Xen after interrupt?
Your guidance would be a lot of help for me.

Quoted 24 lines

Thanking you

Furquan

Quoted 16 lines · Keir Fraser
Quoted 5 lines · On 24/12/2008 11:29, "Furquan Shaikh" <[email protected]…

Is .text 1 the same as .section???

.text 1 occurs in entry.S

Please tell me what it means?

It specifies a numeric subsection. It's still part of the text section, but it will presumably be placed after the normal part of the text section. It's being used here to place rarely used code out of line. It also means that straight-line flow of control skips to the next instance of .previous, without needing an extra JMP instruction. Tricky code. :-)

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel